//
//  MCMyPlanCollectionCell.swift
//  MCBodyBuildingPro
//
//  Created by Renlvshijie on 2023/5/19.
//

import UIKit
import QMUIKit

class MCMyPlanCollectionCell: UICollectionViewCell {

    @IBOutlet weak var weekNumberLabel: UILabel!
    
    @IBOutlet weak var dateNumberLabel: UILabel!
    
    @IBOutlet weak var bgView: UIView!
    override func awakeFromNib() {
        super.awakeFromNib()
//        bgView.layer.cornerRadius = 18.auto()
    }
    
    func changeBgView(selected: Bool) {
        bgView.backgroundColor = selected ? .pg_color(withHexString: "#10151C") : .clear
        weekNumberLabel.textColor = selected ? .pg_color(withHexString: "#35DE94") : .pg_color(withHexString: "#10151C")
        dateNumberLabel.textColor = selected ? .pg_color(withHexString: "#35DE94") : .pg_color(withHexString: "#10151C")
    }

}
